home *** CD-ROM | disk | FTP | other *** search
- #include "defs.h"
-
- #define CHECKPOINTS 0
- #include "debug.h"
-
- pascal void My_StdText( short byteCnt, Ptr textAddr,
- Point numerPt, Point denomPt )
- {
- GrafPtr save_port;
-
- asm {
- movem.l a0-a5/d0-d7, -(SP) ; save registers
- LEA main, A4 ; for addressing global variables
- }
- CKPT("My_StdText start");
-
- if (byteCnt > 0)
- {
- GetPort( &save_port );
- SetPort( text_port );
-
- (*Copy_text)( byteCnt, textAddr );
-
- SetPort( save_port );
- }
- (*Old_StdText)( byteCnt, textAddr, numerPt, denomPt );
-
- CKPT("My_StdText end");
- asm {
- movem.l (SP)+, a0-a5/d0-d7
- }
- }
-